/*!
 * Node-data module v1.0.0 of jRaiser javascript library
 * http://code.google.com/p/jraiser/
 *
 * Author: Heero.Luo
 * Licensed under MIT license
 *
 * Date: Tue Jun 05 2012 10:36:40 GMT+0800
 */
define(["core/1.0.x/core","node-base/1.0.x/node-base"],function(e,t,n){"use strict";function u(e,t){var n=s(e);return o.hasOwnProperty(n)?o[n][t]:null}function a(e,t,n){var r=s(e),i=o[r]=o[r]||{};i[t]=n}function f(e,t,n){var r=s(e);if(t==null||t==="")delete o[r];else{var u=o[r];u&&(n||(t=i.splitBySpace(t)),t.forEach(function(e){delete u[e]}))}}var r=e("core/1.0.x/core"),i=e("node-base/1.0.x/node-base"),s=i.uniqueId,o={};r.extend(t,{getData:u,setData:a,removeData:f,nodeApis:{data:function(e,t){return r.access(this,e,t,!0,{get:u,set:a})},removeData:function(e){return e=i.splitBySpace(e),this.forEach(function(t){f(t,e,!0)}),this}}})})